from django.urls import path
from rest_framework.routers import DefaultRouter # 路由
from classes.views import ClassesView,ClassesMemberViewSet # 视图
# 班级管理app
urlpatterns = [
        path('members/<pk>/',ClassesMemberViewSet.as_view({'post':'add_member'}))
]
routes = DefaultRouter() # 实例化一个路由
routes.register('mixin',ClassesView)  # 注册路由
urlpatterns += routes.urls # 把注册的路由添加到列表里面


